package com.example.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 公共返回状态枚举类
 */
@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {

    //通用状态码
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),

    //登录模块状态码
    LOGIN_ERROR(500210,"用户名或者密码不正确"),
    MOBILE_ERROR(500211,"手机号码格式不正确"),
    PASSWORD_ERROR(500212,"密码错误")
        ;
    private final Integer code;
    private final String message;

}
